package com.example.demo.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

/**
 * @author gsq
 * @date 2025/3/7 15:26
 */
@Data
public class WeixinMsgData {
    @JSONField(name = "MsgId")
    private Long msgId;
    @JSONField(name = "FromUserName")
    private FromUserName fromUserName;
    @JSONField(name = "ToUserName")
    private ToUserName toUserName;
    @JSONField(name = "MsgType")
    private Long msgType;
    @JSONField(name = "Content")
    private Content content;
    @JSONField(name = "Status")
    private Long status;
    @JSONField(name = "ImgStatus")
    private Long imgStatus;
    @JSONField(name = "ImgBuf")
    private ImgBuf imgBuf;
    @JSONField(name = "CreateTime")
    private Long createTime;
    @JSONField(name = "MsgSource")
    private String msgSource;
    @JSONField(name = "NewMsgId")
    private Long newMsgId;
    @JSONField(name = "MsgSeq")
    private Long msgSeq;

    @Data
    public static class FromUserName {
        @JSONField(name = "string")
        private String string;
    }

    @Data
    public static class ToUserName {
        @JSONField(name = "string")
        private String string;
    }

    @Data
    public static class Content {
        @JSONField(name = "string")
        private String string;
    }

    @Data
    public static class ImgBuf {
        @JSONField(name = "iLen")
        private Long iLen;
    }
}
